//var username1 = localStorage.getItem("dingcan_username");
//if(username1 == null || username1 == "") {
//	window.location.href= "login.html";
//} 

/*
 * 检查是否要登陆
 */
$.ajax({
	cache:true,
	type:"GET",
	url:"/dingcan/system/getAppUser.do",
	async:true, //为true无法使用jquery
	error: function(data) {
		localStorage.clear();
		window.location.href = "login.html";
	},
	success:function(data) {
		if(data.search("DOCTYPE") > -1) {
			localStorage.clear();
			window.location.href = "login.html";
		}
	}
});
